<!DOCTYPE html>
<html lang="en" ng-app="app">
<head>
	<meta charset="UTF-8">
	<title>ng_repeat</title>
	<script type="text/javascript" src="../js/angular.js" ></script>
		<script type="text/javascript" src="ng_repeat.js" ></script>
</head>
<body>
	<div ng-controller="controller1">
		<table border="1">
			<tr>
				<th>姓名</th>
				<th ng-click="fnSort(age);">年龄</th>
			</tr>
			<tr  ng-repeat="item in data">
				<td>{{item.name}}</td>
				<td>{{item.age}}</td>
			</tr>
		</table>

	</div>
</body>
</html>